/**
 * <p>Title: Tag.java</p>
 * <p>Description: DoNotes</p>
 * @author WangJun
 * @date 2009/11/19 22:46:19
 * @version 1.0
 */
package net.donotes.blog.pojo;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author WangJun
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Ing {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
    @Persistent
	private String content;    
	@Persistent
	private String from;
    @Persistent
	private Date createDate;
	
    /**
     * Constructors
     */
    public Ing() {
    	
    }
    
    /**
     * Constructors
     * 
     * @param content
     * @param from
     * @param createDate
     */
    public Ing(String content, String from, Date createDate) {
    	this.content = content;
    	this.from = from;
    	this.createDate = createDate;
    }

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the from
	 */
	public String getFrom() {
		return from;
	}

	/**
	 * @param from the from to set
	 */
	public void setFrom(String from) {
		this.from = from;
	}

	/**
	 * @return the createDate
	 */
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 * @param createDate the createDate to set
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
